package com.niu.wm.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import com.niu.wm.model.Product;
import com.niu.wm.vo.ProductVO;
import com.niu.wm.form.ProductSearchForm;

public interface ProductMapper {	
	int insert(Product product);
	
	int update(Product product);
	
	int delete(Long id);
	
	Product selectByPrimaryKey(Long id);
	
	int countProduct(@Param("params") ProductSearchForm form);
	
	List<ProductVO> queryProduct(@Param("params") ProductSearchForm form, @Param("pager")Pageable pageable);
}
